﻿@using ChampionsLeagueBets.Domain
@model Tournament
		   
@{
	ViewBag.Title = "Nowe zawody";
	ViewBag.Image = "~/Content/images/tournament-64.png";
}

@using (Html.BeginForm())
{
	@Html.AntiForgeryToken()

	<div id="content">
		<fieldset class="form-data">
			<legend>Dane podstawowe</legend>
			<table>
				<tr>
					<th>
						@Html.LabelFor(t => t.Name):
					</th>
					<td>@Html.EditorFor(t => t.Name) @Html.ValidationMessageFor(t => t.Name)
					</td>
				</tr>
				<tr>
					<th>
						@Html.LabelFor(t => t.StartDate):
					</th>
					<td>@Html.EditorFor(t => t.StartDate) @Html.ValidationMessageFor(t => t.StartDate)
					</td>
				</tr>
				<tr>
					<th>
						@Html.LabelFor(t => t.EndDate):
					</th>
					<td>@Html.EditorFor(t => t.EndDate) @Html.ValidationMessageFor(t => t.EndDate)
					</td>
				</tr>
				<tr>
					<th>
						@Html.LabelFor(t => t.Money):
					</th>
					<td>@Html.EditorFor(t => t.Money) @Html.ValidationMessageFor(t => t.Money)
					</td>
				</tr>
				<tr>
					<th>
						@Html.LabelFor(t => t.UnitOfAccount):
					</th>
					<td>@Html.EditorFor(t => t.UnitOfAccount) @Html.ValidationMessageFor(t => t.UnitOfAccount)
					</td>
				</tr>
			</table>
		</fieldset>
	</div>

	<div class="ui-actions">
		@Html.SubmitButton("btnSubmit", "Dodaj")
		@(Html.ActionLink<TournamentsController>(c => c.Index(), "Anuluj", new { @class = "link-button" }))
	</div>
}